package debtbundler.presentation.basecomponents;

/**
 * An editor component for domain values.
 * 
 * @author Anssi
 *
 */
public interface DomainEditorComponent<T> extends DomainViewComponent<T> {
	
	/**
	 * Adds a domain value editor listener to this component.
	 * 
	 * @param listener	the domain value editor listener
	 * @return			true if the listener was added
	 */
	public boolean addDomainEditorListener(DomainEditorListener listener);

	/**
	 * Removes a domain value editor listener from this component.
	 * 
	 * @param listener	the domain value editor listener
	 * @return			true if the listener was removed
	 */
	public boolean removeDomainEditorListener(DomainEditorListener listener);

}
